package enums;

/**
 * Created by jianweilin on 16/8/21.
 */
public enum RainbowEnum {
    RED(1, "red"),
    ORANGE(2, "orange"),
    YELLOW(3, "yellow"),
    GREEN(4, "green"),
    CYAN(5, "cyan"),
    BLUE(6, "blue"),
    PURPLE(7, "purple");

    private Integer code;
    private String desc;

    RainbowEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
